class AddressBookInfoEntity {
  List<AddressBookInfoData> datas;

  AddressBookInfoEntity({
    this.datas,
  });

  AddressBookInfoEntity.fromJson(List<dynamic> json) {
    if (json != null) {
      datas = new List<AddressBookInfoData>();
      (json as List).forEach((v) {
        datas.add(new AddressBookInfoData.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.datas != null) {
      data['datas'] = this.datas.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class AddressBookInfoData {
  List<AddressBookInfoDatasUserlist> userList;
  String departmentname;
  String departmentid;
  String departmentcode;

  AddressBookInfoData(
      {this.userList,
      this.departmentname,
      this.departmentid,
      this.departmentcode});

  AddressBookInfoData.fromJson(Map<String, dynamic> json) {
    if (json['userList'] != null) {
      userList = new List<AddressBookInfoDatasUserlist>();
      (json['userList'] as List).forEach((v) {
        userList.add(new AddressBookInfoDatasUserlist.fromJson(v));
      });
    }
    departmentname = json['departmentname'];
    departmentid = json['departmentid'];
    departmentcode = json['departmentcode'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.userList != null) {
      data['userList'] = this.userList.map((v) => v.toJson()).toList();
    }
    data['departmentname'] = this.departmentname;
    data['departmentid'] = this.departmentid;
    data['departmentcode'] = this.departmentcode;
    return data;
  }
}

class AddressBookInfoDatasUserlist {
  String userid;
  String useraccount;
  String username;

  AddressBookInfoDatasUserlist({this.userid, this.useraccount, this.username});

  AddressBookInfoDatasUserlist.fromJson(Map<String, dynamic> json) {
    userid = json['userid'];
    useraccount = json['useraccount'];
    username = json['username'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['userid'] = this.userid;
    data['useraccount'] = this.useraccount;
    data['username'] = this.username;
    return data;
  }
}
